package com.sqllog.admin.sql.mapper;

import com.sqllog.admin.sql.entity.LogDatabaseManager;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * TODO
 *
 * @author chennengcheng
 * @date 2022-01-23 15:17
 * @remark
 */
public interface LogDatabaseManagerMapper {

    /**
     * 查询
     * @param queryName
     * @return
     */
    List<LogDatabaseManager> selectByQueryName(@Param("queryName")String queryName);

    /**
     * 查询
     * @return
     */
    List<LogDatabaseManager> selectAll();

    /**
     * 新增
     * @param logDatabaseManager
     * @return
     */
    int insert(LogDatabaseManager logDatabaseManager);

    /**
     * 删除
     * @param id
     * @return
     */
    int deleteById(@Param("id") String id);

    /**
     *
     * @param id
     * @return
     */
    LogDatabaseManager getById(@Param("id") String id);
}
